package it.eng.area118.mdocommon.android.notification;

public class AndroidNotificationManager {

	private static AndroidNotification INSTANCE;

	private static Object object = new Object();

	private AndroidNotificationManager() {

	}

	public synchronized static AndroidNotification createInstance() {
		synchronized (object) {
			if (INSTANCE == null) {
				INSTANCE = new AndroidNotification();
			}
			return INSTANCE;
		}

	}

	public synchronized static AndroidNotification getInstance() {
		synchronized (object) {
			if (INSTANCE == null) {
				throw new NullPointerException("AndroidNotification instance never create... use createInstance first!");
			}
			return INSTANCE;
		}

	}

}
